import request from '@/utils/request'

// 用户注册
export const registerApi = function (data) {
  return request({
    url: '/h5/user/register',
    method: 'post',
    data
  })
}

// 登录
export const loginApi = function (data) {
  return request({
    url: '/h5/user/login',
    method: 'post',
    data
  })
}

// 获取用户信息
export const userInfoApi = function () {
  return request({
    url: '/h5/user/currentUser',
    method: 'GET'
  })
}
